/* Janus Chat - Version 1.0
 * Authors: Matthew Perry
 *          Michael Freid
 *          Marc Latou
 *          Richard Lee
 *
 * The Janus Chat Client is a highly secured
 * peer-to-peer chat client designed to facilitate
 * the transfer of sensitive data or as a communication
 * medium for the extra paranoid
 *
 * This file contains the implementation for the Smilies
 * dialog. A simple fun feature to insert simple smilies
 * into chat */

#include "smilies.h"
#include "ui_smilies.h"

Smilies::Smilies(QWidget *parent) :
    QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint),
    ui(new Ui::Smilies)
{
    ui->setupUi(this);
}

Smilies::~Smilies()
{
    delete ui;
}

void Smilies::on_happy_clicked()
{
    emit smiley( ":-)" );
    this->close();
}

void Smilies::on_sad_clicked()
{
    emit smiley( ":-(" );
    this->close();
}

void Smilies::on_cry_clicked()
{
    emit smiley( ":'-(" );
    this->close();
}

void Smilies::on_lol_clicked()
{
    emit smiley( ":-D" );
    this->close();
}

void Smilies::on_tounge_clicked()
{
    emit smiley( ":-P" );
    this->close();
}

void Smilies::on_eyes_clicked()
{
    emit smiley( "8-)" );
    this->close();
}

void Smilies::on_meh_clicked()
{
    emit smiley( ":-/" );
    this->close();
}

void Smilies::on_suprise_clicked()
{
    emit smiley( ":-O" );
    this->close();
}

void Smilies::on_flat_clicked()
{
    emit smiley( ":-|" );
    this->close();
}
